﻿using System.Windows.Forms;
using Campus.Main.Basic;

namespace Campus.Main.ReadWriteUser
{
    public partial class FormForReadUser : BasicUserForm
    {
        public FormForReadUser()
        {
            InitializeComponent();
            //btn_search.Click += btn_search_Click;
            //btn_allListO.Click += btn_allListO_Click;
            btn_setting.Enabled = false;
            btn_onkayit.Enabled = false;
            btn_kesinkayit.Enabled = false;
            ToolStripMenuItem.DropDownItems.Remove(ortalamaVePuanlariYenilemekToolStripMenuItem);
        }

        public FormForReadUser(int a):base()
        {
            InitializeComponent();
            btn_setting.Enabled = false;
            btn_onkayit.Enabled = false;
            btn_kesinkayit.Enabled = false;
            btn_search.Click += btn_search_Click;
            btn_allListO.Click+=btn_allListO_Click;
            btn_allListK.Click += btn_allListK_Click;
            btn_allListK.Click += btn_allListK_Click;
            btn_report.Click += button1_Click_1;
            ToolStripMenuItem.DropDownItems.Remove(ortalamaVePuanlariYenilemekToolStripMenuItem);
        }

        protected override void btn_search_Click(object sender, System.EventArgs e)
        {
            SearchForm f=new SearchForReadUser();
            f.ShowDialog();
        }


        protected override void btn_allListO_Click(object sender, System.EventArgs e)
        {
            AllListForReadUser f = new AllListForReadUser();
            f.ShowDialog();
        }

        protected override void btn_allListK_Click(object sender, System.EventArgs e)
        {
            AllListKForReadUser f=new AllListKForReadUser();
            f.ShowDialog();
        }

        protected override void button1_Click_1(object sender, System.EventArgs e)
        {
            ReportForReadUser f=new ReportForReadUser();
            f.ShowDialog();
        }
        protected override void ortalamaVePuanlariYenilemekToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            MessageBox.Show("Sizin hakkiniz yok");
        }
    }
}
